package com.gitee.baqkft.code.db;

/**
 * 数据列实体
 * @author chenmingcai
 * @date 2017年11月7日 下午4:15:42 
 *
 */

public class DBColumn extends DBEntity
{
	/**
	 * 数据类型
	 */
	private String type;
	
	/**
	 * 精度
	 */
	private Integer precision;
	
	/**
	 * 列长度
	 */
	private int length;
	
	/**
	 * 默认值
	 */
	private String defaultValue;
	
	/**
	 * 是否主键
	 */
	private boolean primary;

	public String getType()
	{
		return type;
	}

	public void setType(String type)
	{
		this.type = type;
	}

	public Integer getPrecision()
	{
		return precision;
	}

	public void setPrecision(Integer precision)
	{
		this.precision = precision;
	}

	public int getLength()
	{
		return length;
	}

	public void setLength(int length)
	{
		this.length = length;
	}

	public String getDefaultValue()
	{
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue)
	{
		this.defaultValue = defaultValue;
	}

	public boolean isPrimary()
	{
		return primary;
	}

	public void setPrimary(boolean primary)
	{
		this.primary = primary;
	}
	
	
}
